<?php

namespace app\common\model\product;

use app\common\model\BaseModel;

/**
 * 单位模型
 */
class ProductUnit extends BaseModel
{
    protected $name = 'product_unit';
    protected $pk = 'unit_id';

    // 单位详情
    public static function detail($unit_id)
    {
        return (new self)->find($unit_id);
    }

    public static function findunit($where)
    {
        return self::where($where)->find();
    }
}
